<template>
	<view class="index-page-animation">
		<!-- 太阳 -->
		<view class="sun">
			<view class="sun-core"></view>
			<view class="sun-glow"></view>
			<view v-for="(item,index) in 6" :key="index" class="sun-light"
				:style="{transform: 'translate(-'+index*30+'%,'+index*80+'%) scale('+(0.6+index*0.2)+') skewX(5deg)',opacity:(1-0.16*index)}">
			</view>
		</view>

		<!-- 小花 -->
		<!-- 小草 -->
		<!-- 小石头 -->

		<!-- 小山 -->
		<!-- <view class="xiao-shan-box">
			<view class="xiao-shan"></view>
			<view class="xiao-shan"></view>
			<view class="xiao-shan"></view>
			<view class="xiao-shan"></view>
		</view> -->

	</view>
</template>

<script>
	export default {
		name: "index-page-animation",
		data() {
			return {

			};
		}
	}
</script>

<style>
	.index-page-animation {
		position: fixed;
		width: 100vw;
		height: 100vh;
		top: 0;
		left: 0;
		background: linear-gradient(180deg, #1E90FF 0%, #87CEEB 50%, #E0F7FA 100%);
		overflow: hidden;
	}

	/* 太阳容器 */
	.sun {
		position: absolute;
		width: 120px;
		height: 120px;
		right: 60rpx;
		bottom: 900rpx;
		opacity: 0.9;
	}

	/* 太阳核心 */
	.sun-core {
		position: absolute;
		width: 100%;
		height: 100%;
		background: #FFD700;
		border-radius: 50%;
		box-shadow: 0 0 20px #FFD700;
		z-index: 1;
		animation: sunPulse 3s infinite alternate;
	}

	/* 太阳光晕 */
	.sun-glow {
		position: absolute;
		width: 140%;
		height: 140%;
		top: -20%;
		left: -20%;
		background: rgba(255, 215, 0, 0.3);
		border-radius: 50%;
		z-index: 0;
		animation: sunGlow 4s infinite alternate;
	}



	@keyframes sunPulse {
		0% {
			transform: scale(1);
			box-shadow: 0 0 20px #FFD700;
		}

		100% {
			transform: scale(1.05);
			box-shadow: 0 0 40px #FFA500;
		}
	}

	@keyframes sunGlow {
		0% {
			transform: scale(1);
			opacity: 0.3;
		}

		100% {
			transform: scale(1.1);
			opacity: 0.5;
		}
	}

	.sun-light {
		position: absolute;
		right: 60%;
		top: 120%;
		width: 50rpx;
		height: 50rpx;
		background-color: rgba(255, 255, 255, 0.5);
		border-radius: 50%;

	}

	.xiao-shan-box {
		position: absolute;
		width: 100%;
		height: 400rpx;
		background-color: rgba(0, 0, 0, 0.03);
		bottom: 0;
		left: 0;
	}
	.xiao-shan{
		background-color: #1E90FF;
		width: 500rpx;
		height: 500rpx;
		border-radius: 20% 40% 30% 10%;
		position: absolute;
		left:0;
	}
</style>